<?php echo form_open('submanager/change_pass') ?>
<!-- Modal -->
<div class="span5 dialog-box">
	<div class="modal-header">
		<?php
		echo anchor ('submanager/get_profile', form_button('btn_cross', '×', 'class="close" data-dismiss="modal" aria-hidden="true"'));
		echo heading('New Password', 3, 'class="myModalLabel"');
		?>
	</div>
	<div class="modal-body">
		<?php
		if ($this->session->userdata('opass_err')) {
			echo $this->session->userdata('opass_err');
			$this->session->unset_userdata('opass_err');
		} else if ($this->session->userdata('npass_err')) {
			echo $this->session->userdata('npass_err');
			$this->session->unset_userdata('npass_err');
		} else if ($this->session->userdata('input_blank')) {
			echo $this->session->userdata('input_blank');
			$this->session->unset_userdata('input_blank');
		} else if ($this->session->userdata('min_length')) {
			echo $this->session->userdata('min_length');
			$this->session->unset_userdata('min_length');
		}
		?>
		<table>
			<tbody>
				<tr>
					<td class="txt">Old Password</td>
					<td class="txt1">:</td>
					<td class="input_txt"><?php echo form_password('old_pass'); ?></td>
				</tr>
				<tr>
					<td class="txt">New Password</td>
					<td class="txt1">:</td>
					<td class="input_txt"><?php echo form_password('new_pass'); ?></td>
				</tr>
				<tr>
					<td class="txt">Confirm Password</td>
					<td class="txt1">:</td>
					<td class="input_txt"><?php echo form_password('con_pass'); ?></td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="modal-footer">
		<?php
		echo anchor('submanager/get_profile', form_button('tbn_close', 'Close', 'class="btn btn-info" data-dismiss="modal" aria-hidden="true"')). nbs(2);
		echo form_submit('btn_save_change', 'Save change', 'class="btn btn-info"');
		?>
	</div>
</div>
<?php echo form_close(); ?>